<?php
/**
 * The following variables are available in this template:
 * - $this: the BootstrapCode object
 */
?>
<?php echo "<?php\n"; ?>
    /* @var $this <?php echo $this->getControllerClass(); ?> */
    /* @var $model <?php echo $this->getModelClass(); ?> */
<?php echo "?>\n"; ?>

<?php
echo "<?php\n";
$label = $this->pluralize($this->class2name($this->modelClass));
$nameColumn = $this->guessNameColumn($this->tableSchema->columns);
echo "\$this->breadcrumbs=[
	'$label'=>array('index'),
	\$model->{$nameColumn}=>array('view','id'=>\$model->{$this->tableSchema->primaryKey}),
	'Update',
];\n";
?>

$this->menu=[
    ['icon' => 'glyphicon glyphicon-home','label'=>'Manage <?php echo $this->modelClass; ?>', 'url'=>['admin']],
    ['icon' => 'glyphicon glyphicon-plus-sign','label'=>'Create <?php echo $this->modelClass; ?>', 'url'=>['create']],
    ['icon' => 'glyphicon glyphicon-minus-sign','label'=>'Delete <?php echo $this->modelClass; ?>', 'url'=>'#', 'linkOptions'=>['submit'=>['delete','id'=>$model-><?php echo $this->tableSchema->primaryKey; ?>],'confirm'=>'Are you sure you want to delete this item?']],
];

$this->pageTitle='Update';
$this->pageSubTitle='<?php echo $this->modelClass?>'.$model-><?php echo $this->tableSchema->primaryKey?>.'.';

?>


<?php echo "<?php \$this->renderPartial('_form', array('model'=>\$model)); ?>"; ?>